import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

const history = createWebHistory();

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    redirect: "home",
  },
  {
    path: "/home",
    name: "home",
    component: () => import("../views/Home.vue"),
  },
  {
    path: "/bridgeTraffic",
    name: "test",
    component: () => import("../views/BridgeTraffic.vue"),
  },
  {
    path: "/District",
    name: "District",
    component: () => import("../views/District.vue"),
  },
  {
    path: "/Plant",
    name: "Plant",
    component: () => import("../views/Plant.vue"),
  },
  {
    path: "/Test",
    name: "Test",
    component: () => import("../views/Test.vue"),
  },
];

const router = createRouter({
  history,
  routes,
});

export default router;
